package com.pandy.seckill.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 秒杀商品表
 * </p>
 *
 * @author pandy
 * @since 2025-04-08
 */
@Getter
@Setter
@TableName("seckill_sku")
public class SeckillSku implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * 标题
     */
    @TableField("sku_title")
    private String skuTitle;

    /**
     * 图片
     */
    @TableField("sku_image")
    private String skuImage;

    /**
     * 原价
     */
    @TableField("sku_price")
    private BigDecimal skuPrice;

    /**
     * 秒杀价
     */
    @TableField("cost_price")
    private BigDecimal costPrice;

    /**
     * 秒杀开始时间
     */
    @TableField("start_time")
    private LocalDateTime startTime;

    /**
     * 秒杀结束时间
     */
    @TableField("end_time")
    private LocalDateTime endTime;

    /**
     * 剩余库存
     */
    @TableField("stock_count")
    private Integer stockCount;

    /**
     * 原始库存
     */
    @TableField("raw_stock_count")
    private Integer rawStockCount;

    /**
     * 秒杀key
     */
    @TableField("exposed_key")
    private String exposedKey;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("updated_time")
    private LocalDateTime updatedTime;


}
